﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    //学号、姓名、年龄
    class Students
    {
        private int num;
        private string name;
        private int age;

        public int Num { get => num; set => num = value; }
        public string Name { get => name; set => name = value; }
        public int Age { get => age; set => age = value; }

        public Students(int num,string name,int age)
        {
            this.Num = num;
            this.Name = name;
            this.Age = age;
        }
        public override string ToString()
        {
            return $"{num} {name} {age}";
        }
    }
}
